import React from "react";
import imgUrl from "@/images/fail-loan-repay.png";
import "./index.scss";
const FailLoanRepay = props => {
	const { textObj = {}, onClick, loanBalanceAmt } = props;
	return (
		<ul className="fail-loan-repay">
			<li>
				<img src={imgUrl} />
			</li>
			<li>{textObj.title}</li>
			<li>{textObj.message}</li>

			{loanBalanceAmt <= 0 && <li onClick={onClick}>去借钱</li>}
		</ul>
	);
};

export default FailLoanRepay;
